package os.t3;

public class Writer extends Thread{
    Resources resources;

    public Writer(Resources resources) {
        this.resources = resources;
    }
    public void run(){
        while (true){
            try {
                resources.write();
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
        }
    }
}
